package com.j1ay.forum.service;

import com.j1ay.forum.model.pojo.po.Permission;
import com.j1ay.forum.model.dto.params.PageParams;
import com.j1ay.forum.model.pojo.vo.Result;

import java.util.List;

/**
 * @Author J1ay
 * @Date 2021/12/18 20:42
 * @Description
 */

public interface PermissionService {

    /**
     * 分页查看权限列表
     * @param pageParams
     * @return
     */
    Result getPermissionList(PageParams pageParams);


    Result add(Permission permission);

    Result update(Permission permission);

    Result delete(Long id);

}
